using System;
using System.Collections.Generic;

namespace CastleSample.Entity
{
    [Serializable]
    public class OrderEntityCollection : List<OrderEntity>
    {
        public bool Contains(Guid orderId)
        {
            bool found = false;
            foreach (OrderEntity order in this)
            {
                if (order.OrderId == orderId)
                {
                    found = true;
                    break;
                }
            }
            return found;
        }
    }
}